#pragma once
#include "vector3.h"
#include "quaternion.h"
#include "gl\glut.h"
#include "RigidBody.h"
#include "DrawTools.h"

class Bar : public RigidBody
{
public:
	Bar(void);
	Bar(double l, double w, double m);
	~Bar(void);

	void AddTorque(vector3 force, double length);
	vector3 GetMomentum(vector3 p);

	void Initialize();
	void Render();

	double length;
	double width;

	double maxAngle;
	double minAngle;

	vector3 color;
};

